package com.winning.ds.role.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: nxs@winning.com.cn
 * @Description: 菜单实体类
 * @Date: 2018-07-18 17:09:50
 **/
public class SysGncdTreeEntity implements Serializable {

    //菜单编码  对应mcode
    private String id;

    //菜单编码  mcode
    private String mcode;

    //菜单名称 对应 mcaption
    private String name;

    //父菜单  对应pcode
    private String pId;

    //菜单顺序
    private Integer mgorder;

    //业务代码  对应 功能代码
    private String fcode;

    //叶子节点标志
    private String yzjd;

    //激活状态
    private String active;

    //是否包含子节点
    private boolean hasChildren;

    //子节点
    private List<SysGncdTreeEntity> children;


    private static final long serialVersionUID = 1L;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMcode() {
        return mcode;
    }

    public void setMcode(String mcode) {
        this.mcode = mcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public Integer getMgorder() {
        return mgorder;
    }

    public void setMgorder(Integer mgorder) {
        this.mgorder = mgorder;
    }

    public String getFcode() {
        return fcode;
    }

    public void setFcode(String fcode) {
        this.fcode = fcode;
    }

    public boolean getHasChildren() {
        String bo=this.yzjd;
        if("0".equals(bo)){
            hasChildren=false;
        }else{
            hasChildren=true;
        }
        return hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }

    public String getYzjd() {
        return yzjd;
    }

    public void setYzjd(String yzjd) {
        this.yzjd = yzjd;
    }

    public List<SysGncdTreeEntity> getChildren() {
        return children;
    }

    public void setChildren(List<SysGncdTreeEntity> children) {
        this.children = children;
    }

}